package com.mew.common.rest;

import io.netty.buffer.ByteBuf;
import lombok.*;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class IntMessage extends MewResponse<IntMessage> {

    public int i;

    @Override
    public void write(ByteBuf byteBuf) {

        writeInt(byteBuf, this.i);
    }

    @Override
    public IntMessage read(ByteBuf b) {
        IntMessage message = new IntMessage();
        message.i = readInt(b);
        return message;
    }

}
